<?php
/**
 * 后台菜单配置
 * index的控制器跟home的名称相同
 *    'home' => [
 *       'name' => '首页',                // 菜单名称
 *       'icon' => 'icon-home',          // 图标 (class)
 *       'index' => 'home/index',         // 链接
 *     ],
 */
return [
    'tadmin' => [
        'index' => [
            'name' => '首页',
            'icon' => 'icon-home',
            'index' => 'index/index',
        ],
        "category" => [
            'name' => '内容',
            'icon' => 'icon-goods',
            'index' => 'category/index',
            'submenu' => [
                [
                    'name' => '栏目管理',
                    'index' => 'category/index',
                    'uris' => [
                        'category/index',
                        'category/add',
                        'category/edit',
                        'category.single/index',
                        'category.doc/index',
                        'category.doc/add',
                        'category.doc/edit'
                    ]
                ],
                 /**
                [
                    'name' => '体育专题',
                    'index' => 'category.website/index'
                ],
               
                [
                    'name' => '标签管理',
                    'index' => 'category.tag/index'
                ]
                 */

            ]
        ],
        'manage' => [
            'name' => '管理',
            'icon' => 'icon-marketing',
            'index' => 'manage/index',
            'submenu' => [
                [
                    'name' => '广告',
                    'active' => true,
                    'submenu' => [
                        [
                            'name' => '主站广告',
                            'index' => 'manage/index'
                        ],

                        // [
                        //     'name' => '手机站广告',
                        //     'index' => 'manage/index?sitep=2'
                        // ]
                    ]
                ],
                [
                    'name' => '友链',
                    'active' => true,
                    'submenu' => [
                        [
                            'name' => '首页友链',
                            'index' => 'manage.link/index'
                        ],
                        [
                            'name' => '直播信号',
                            'index' => 'manage.link/index?site=2'
                        ],
                    ]
                ],
                /**
                [
                    'name' => '导航',
                    'index' => 'manage/index?sitep=3'
                ],
                 */
            ]
        ],
        'setting' => [
            'name' => '设置',
            'icon' => 'icon-setting',
            'index' => 'setting/index',
            'submenu' => [
                [
                    'name' => '系统设置',
                    'index' => 'setting/index',
                ],
                [
                    'name' => '其他',
                    'active' => true,
                    'submenu' => [
                        [
                            'name' => '清理缓存',
                            'index' => 'setting.cache/clear'
                        ],
                        [
                            'name' => '环境检测',
                            'index' => 'setting.science/index'
                        ],
                    ]
                ]
            ],

        ],
    ],
];
